<?php

	$formConfig = array(
	    "labelAlign" => "right",
	    "labelWidth" => 80,	
		'bodyStyle' => 'padding:5px 5px 0'	    
	);
	
	$items = array(	
		array(
			'layout' => 'column',
			'xtype' => 'fieldset',
			'title' => 'Personal Info',
			'collapsable' => false,
			'height' => 100,
			'items' => array(
				array(
					'columnWidth' => .5,
					'layout' => 'form',
					'items' => array(
						array(
							'xtype' => 'textfield',
							'name' > 'fname',
							'anchor' => '95%',
							'fieldLabel' => 'First Name',
							'allowBlank' => false
						),
						array(
							'xtype' => 'textfield',
							'name' > 'company',
							'anchor' => '95%',
							'fieldLabel' => 'Company'
						)					
					)
				),
				array(
					'columnWidth' => .5,
					'layout' => 'form',
					'items' => array(
						array(
							'xtype' => 'textfield',
							'name' > 'lname',
							'anchor' => '95%',
							'fieldLabel' => 'Last Name',
							'allowBlank' => false
						),
						array(
							'xtype' => 'textfield',
							'name' > 'email',
							'anchor' => '95%',
							'vtype' => 'email',
							'fieldLabel' => 'Email'
						)					
					)
				)
			)
		),
		array(
			'xtype' => 'htmleditor',
			'id' => 'bio',
			'height' => 150,
			'hideLabel' => true,
			'anchor' => '100%'				
		)			    					
	);						
	
	$config = array(
	    'success' => true,
	    'metaData' => array(
	        'elements' => $items,
			'formConfig' => $formConfig
	    ),
	    'data' => array('company' => 'Xchequer')
	);
	
	echo json_encode($config);

?>